package com.example.Menu;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;

public class Menu extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
    
    /**
     * retourne le texte contenu dans le button
     * @param id
     * @return
     */
     public String getButtonText(int id){
     	Button a = (Button) findViewById(id);
     	return ""+a.getText();
     }
}